<?php
$mod_right_recomm_popular = MBGlobal::getAdminRecomm()->getMod(9);
$right_recomm_popular_arr = MBGlobal::getAdminRecomm()->showRightRecommPopular(0, $mod_right_recomm_popular['list'][0]['p2'], 1);
$right_recomm_popular_arr = formatUserList($right_recomm_popular_arr);

if($mod_right_recomm_popular['list'][0]['status']){
?>
<table width="288" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="25" colspan="3">&nbsp;</td>
	</tr>
	<tr>
		<td width="7">&nbsp;</td>
		<td>
			<table width="272" height="43" border="0" cellpadding="0" cellspacing="0" background="style/images/login/rightsidebar.gif">
				<tr>
					<td width="45">&nbsp;</td>
					<td width="185" align="center" valign="baseline" class="f18"><?php echo $mod_right_recomm_popular['list'][0]['name'];?></td>
					<td width="42" align="left"><a href="#" target="_blank" class="whter"></a></td>
				</tr>
			</table>
		</td>
		<td width="7">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="center" valign="top">
			<table width="250" border="0" cellpadding="0" cellspacing="0" background="style/images/login/line1.gif">
				<?php
				foreach ($right_recomm_popular_arr['list'] as $k=>$h){
				?>
				<tr>
					<td width="42" height="50" align="center"><img src="style/images/login/icon_<?php echo $k+1;?>.gif" width="19" height="13" /></td>
					<td width="41" align="left">
						<table border="0" cellpadding="0" cellspacing="2" class="bk1">
							<tr>
								<td><a href="index.php?m=guest&u=<?php echo $h['uname']?>" target="_blank"><img src="<?php echo $h['head']?>" width="28" height="28" border="0" /></a></td>
							</tr>
						</table>
					</td>
					<td width="125" align="left"><a href="index.php?m=guest&u=<?php echo $h['uname']?>" target="_blank" class="f6"><?php echo $h['nick']?></a></td>
					<td width="42" align="left" class="blue1"></td>
				</tr>
				<?php
				}
				?>
			</table>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<?php
}
?>